package cn.zmall.common.utils;

import java.util.Random;

/**
 * @Author BinBini
 * @Date 2020/11/3 10:23
 * @Version 1.0
 */
public class IDUtil {

    public static long getRandomId() {
        long millis = System.currentTimeMillis();
        Random random = new Random();
        int end2 = random.nextInt(99);
        String str = millis + String.format("%02d", end2);
        long id = new Long(str);
        return id;
    }

}
